
public class Simbol{
    String value;
    String type;

    public Simbol(){
		this.type="terminal";
		this.value="";
    }
    
    public Simbol(String value){
		this.type="terminal";
		this.value=value;
    }

    public Simbol(String value, String type){
		this.value=value;
		this.type=type;
    }

    public String getValue(){
		return this.value;
    }
    
    public void setValue(String value){
		this.value=value;
    }

    public String getType(){
		return this.type;
    }
    
    public void setType(String type){
		this.type=type;
    }
	
	public String toString(){
		String s="";
		if(type=="string")s+="\""+getValue()+"\" ";
		else s+=getValue()+" ";
		return s;
	}
}
